<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        .content {
            width: 600px;
            margin: auto;
        }

        .left,
        .right {
            display: flex;
            width: 100%;
            position: relative;
        }

        .right {
            justify-content: flex-end;
        }

        .left p,
        .right p {
            background-color: #89D961;
            padding: 12px;
            border-radius: 8px;
        }

        .left::before,
        .right::after {
            content: "";
            width: 0;
            height: 0;
            position: absolute;
            border: 8px solid transparent;
            top: 27px;
        }

        .left::before {
            border-right-color: #89D961;
            left: -16px;
        }

        .right::after {
            border-left-color: #89D961;
            right: -16px;
        }
    </style>
</head>

<body>
    <div class="content">
        <div class="left">
            <p>Nice to meet you!</p>
        </div>
        <div class="right">
            <p>Nice to meet you too!</p>
        </div>
    </div>
</body>

</html>